package com.zhw.config;

import com.zhw.pojo.Book;
import org.dom4j.io.SAXReader;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class BeanConfig {



    @Bean
    @Scope("prototype")
    public SAXReader saxReader(){
        return new SAXReader();
    }


    @Bean
    public Book book(){
        Book b=new Book();
        b.setName("国色天香");
        return b;
    }



}
